Skip to content

Conversation

@Stefterv
Copy link
Collaborator

@Stefterv Stefterv commented Jan 30, 2026

Wrap the NewtFactory.setWindowIcons(res) call in a platform check so icons are only set when PApplet.platform == PConstants.WINDOWS. This avoids invoking the icon-setting behavior on non-Windows platforms. Also reorganize and consolidate import statements (add missing AWT/Swing, JOGL and Processing imports) to fix compilation and include required classes.

This solves the issue where I got a JOGL natives error on macOS (and probably Linux as well)

Also solves an issue for #1234

Wrap the NewtFactory.setWindowIcons(res) call in a platform check so icons are only set when PApplet.platform == PConstants.WINDOWS. This avoids invoking the icon-setting behavior on non-Windows platforms. Also reorganize and consolidate import statements (add missing AWT/Swing, JOGL and Processing imports) to fix compilation and include required classes.
@Stefterv Stefterv marked this pull request as ready for review January 30, 2026 16:21
@Stefterv Stefterv requested a review from catilac January 30, 2026 16:21
Copy link
Collaborator

@catilac catilac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@catilac catilac merged commit c81cda7 into processing:main Feb 2, 2026
11 of 12 checks passed
@Stefterv Stefterv deleted the fix-only-windows branch February 2, 2026 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants